package dk.dashboardFP.panels.settingspanel.info {
	import flash.events.Event;

	import dk.dashboardFP.DashboardFP;

	/**
	 * @author josef
	 */
	public class StageSizeInfo extends InfoValueLine {
		public function StageSizeInfo() {
			super();
			
			// setup 
			setLabel("Stage size");
			
			// register 
			DashboardFP.getInstance().stage.addEventListener(Event.RESIZE, onStageResize);
		}

		private function onStageResize(event : Event) : void {
			update();
		}

		override public function update() : void {
			super.update();
			_valueLabel.sText = DashboardFP.getInstance().stage.stageWidth + " x " + DashboardFP.getInstance().stage.stageHeight;
		}
	}
}
